import requests
url = "https://fanyi.baidu.com/sug"

#输入翻译的内容
word = input("请输入要翻译单词：")
body = {"kw": word}
res = requests.post(url=url,json=body)
l = len(res.json()["data"])
for i in range(l):
    print(res.json())